package main

import (
	"encoding/hex"
	"fmt"
	"golang.org/x/exp/rand"
	"strings"
)

func generateRandomString(length int) (string, error) {
	bytes := make([]byte, length)
	_, err := rand.Read(bytes)
	if err != nil {
		return "", err
	}
	return hex.EncodeToString(bytes), nil
}
func main() {
	//dns := "root:123456@(127.0.0.1:3306)/grpcproject?charset=utf8&parseTime=True&loc=Local"
	//db, err := gorm.Open(mysql.Open(dns), &gorm.Config{
	//	NamingStrategy: schema.NamingStrategy{
	//		SingularTable: true,
	//	},
	//})
	//if err != nil {
	//	panic(err)
	//}
	//
	//db.AutoMigrate(&model.Resume{})
	//db.AutoMigrate(&model.HouseKeeping{})
	var s string = "hahahh.pdf&13216516&1565656"
	fmt.Println(len(strings.Split(s, "&13216516&")))
	fmt.Println(strings.Split(s, "&13216516&")[0], strings.Split(s, "&13216516&")[1])
}
